<template>
  <footer class="footer">
    <div class="footer-content">
      <div class="footer-section">
        <h4>关于我们</h4>
        <ul>
          <li>公司简介</li>
          <li>企业文化</li>
          <li>加入我们</li>
          <li>联系方式</li>
        </ul>
      </div>
      <div class="footer-section">
        <h4>产品服务</h4>
        <ul>
          <li>小米手机</li>
          <li>Redmi手机</li>
          <li>手机配件</li>
          <li>售后服务</li>
        </ul>
      </div>
      <div class="footer-section">
        <h4>联系我们</h4>
        <ul>
          <li><span>服务热线：</span><span>400-100-5678</span></li>
          <li><span>邮箱：</span><span>support@example.com</span></li>
          <li><span>地址：</span><span>深圳市南山区科技园</span></li>
          <li><span>工作时间：</span><span>周一至周日 9:00-18:00</span></li>
        </ul>
      </div>
      <div class="footer-section qrcode">
        <h4>关注我们</h4>
        <div class="qrcode-container">
          <div class="qrcode-item">
            <img src="/images/qrcode.png" alt="微信二维码">
            <p>微信公众号</p>
          </div>
        </div>
      </div>
    </div>
    <div class="footer-bottom">
      <p>© 2024 小米手机官方网站 版权所有</p>
      <p>ICP备案号：粤ICP备XXXXXXXX号-1</p>
    </div>
  </footer>
</template>

<style scoped>
.footer {
  background-color: #2f2f2f;
  color: #fff;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}

.footer-section {
  flex: 1;
  margin-right: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-section:last-child {
  margin-right: 0;
}

.footer-section h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #fff;
  font-weight: normal;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.footer-section ul li {
  margin-bottom: 10px;
  color: #b0b0b0;
  font-size: 14px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

/* 联系我们区域特殊样式 */
.footer-section ul li span {
  color: #b0b0b0;
}

.footer-section ul li span:first-child {
  min-width: 90px;
  text-align: left;
}

.footer-section ul li:hover {
  color: #ff6700;
  cursor: pointer;
}

/* 二维码区域样式 */
.qrcode {
  align-items: flex-start;
}

.qrcode-container {
  display: flex;
  gap: 20px;
  margin-top: 0;
}

.qrcode-item {
  text-align: center;
  background: #3a3a3a;
  padding: 10px;
  border-radius: 8px;
  width: 140px;
}

.qrcode-item img {
  width: 120px;
  height: 120px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.qrcode-item p {
  font-size: 14px;
  color: #b0b0b0;
  margin: 0;
  line-height: 1.5;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid #3f3f3f;
  text-align: center;
}

.footer-bottom p {
  margin: 5px 0;
  font-size: 12px;
  color: #b0b0b0;
}
</style>
